|
2020-2021 Sunseeker Telemetry and Lighting System
|
#include "driverlib.h"Go to the source code of this file.
Functions | |
| void | main (void) |
| void main | ( | void | ) |
LED Toggle in LPM4, Input is compared against 2.0V Internal Reference
Use CompB and internal reference to determine if input 'Vcompare' is high of low. When Vcompare exceeds 2.0V CBOUT goes high and when Vcompare is less than 2.0V then CBOUT goes low. Connect P1.6/CBOUT to P1.0 externally to see the LED toggle accordingly.
MSP430x552x
------------------
/|\| |
| | |
--|RST P6.0/CB0|<- Vcompare
| P1.6/CBOUT|--> 'high'(Vcompare>2.0V); 'low'(Vcompare<2.0V)
| | |
| P1.0|_| LED 'ON'(Vcompare>2.0V); 'OFF'(Vcompare<2.0V)
| |
This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:
This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.
Definition at line 66 of file comp_b_ex1_2VRef.c.
References __delay_cycles(), __no_operation(), and param.